import 'package:flutter/material.dart';
void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title:'welcom to flutter',
      home: Scaffold(
        appBar: AppBar(
          title: Text('test')
        ),
        body: Center(
          child: Container(
            child: new Text('测试文字测试文字测试文字测试文字测试文字测试文字测试文字测试文字'),
            alignment: Alignment.topLeft,
            width: 500.0,
            height:500.0,
            // color: Colors.lightBlue,
            padding: const EdgeInsets.fromLTRB(20.0,50.0,100.0,0.0),
            margin: const EdgeInsets.all(30.0),
            decoration: new BoxDecoration(
              gradient: const LinearGradient(
                colors:[Colors.lightGreenAccent,Colors.pinkAccent,Colors.purple]
              ),
              border: Border.all(width:5.0,color:Colors.red)
            ),
          ), 
        ),
      ),
    );
  }
}